{extend name="template/pc/qiye/_base.html" /}

{block name="css"}
<link rel="stylesheet" type="text/css" href="__STATIC__/admin/hui/static/h-ui/css/Validform_msg.css"/>
<link rel="stylesheet" href="__TPMPLATE__pc/qiye/css/jqzoom.css">
{/block}

{block name="main"}

<div class="container content cont-pc">

    {include file="template/pc/qiye/_left.html"}

    <div class="col-md-9 right">

        {include file="template/pc/qiye/_right.html"}

        <div class="conY">
            <div class="conY_tit">{$data.title ?? ''}</div>
            <div class="conY_dat">{:lang('Author')}：{$data.issue}&nbsp;&nbsp;&nbsp;{:lang('Create time')}：{$data.create_time ?? ''}</div>
            <div class="conY_text" style="text-align: left;">

                <div class="right-extra">

                    <div class="tendcont">

                        <div class="tend-left">

                            <div id="preview" class="spec-preview">
                                <span class="jqzoom">
                                    {volist name="$images" id="vo"}
                                    <img alt="{$data.title}" jqimg="__PUBLIC__/uploads/{$vo ?'image/'.$vo: 'not.jpg'}" src="__PUBLIC__/uploads/{$vo ?'image/'.$vo: 'not.jpg'}" />
                                    {/volist}
                                </span>
                            </div>

                            <div class="spec-scroll">
                                <a class="prev"></a>
                                <a class="next"></a>
                                <div class="items">
                                    <ul>
                                        {volist name="$images" id="vo"}
                                        <li>
                                            <img alt="{$data.title}" bimg="__PUBLIC__/uploads/{$vo ?'image/'.$vo: 'not.jpg'}" src="__PUBLIC__/uploads/{$vo ?'image/'.$vo: 'not.jpg'}" onmousemove="preview(this);">
                                        </li>
                                        {/volist}
                                    </ul>
                                </div>
                            </div>

                        </div>

                        <div class="tend-right">
                            {$data.parameter|default=''|html_entity_decode ?? ''}
                        </div>

                    </div>

                    <div style="clear:both;height:10px;"></div>

                    <div class="m" id="comment">

                        <ul class="tab clearfix">
                            <li onclick="tabs('#comment',0)" class="curr">
                                {:lang('Graphic introduction')}<strong></strong>
                            </li>
                        </ul>

                        <div class="mc tabcon" style="display:block;">
                            <div class="norecode">
                                {$data.center|default=''|html_entity_decode ?? ''}
                            </div>
                        </div>

                    </div>

                </div>

            </div>

            <div class="conY_fanye">
                <div class="conY_fanyel">
                    {:lang('Previous page')}：
                    {empty name="$next.pre.id"}{:lang('No')}{else /}
                    <a title="{$next.pre.title}" href="{:url(\''.\\think\\Request::instance()->controller().'/detailed',['id'=>$next.pre.id,'navid'=>$next.pre.cid])}">
                        {$next.pre.title}
                    </a>
                    {/empty}
                </div>

                <div class="conY_fanyer">
                    {:lang('Next page')}：{empty name="$next.next.id"}{:lang('No')}{else /}
                    <a title="{$next.next.title}" href="{:url(\''.\\think\\Request::instance()->controller().'/detailed',['id'=>$next.next.id,'navid'=>$next.next.cid])}">
                        {$next.next.title}
                    </a>
                    {/empty}
                </div>
            </div>

            <div class="leave-message" style="display:none;">

                <div class="leave-message-user">
                    <div class="leave-message-title">
                        <b>网友评论</b>
                        <span>文明上网理性发言，请遵守新闻评论服务协议</span>
                    </div>
                </div>

                <div class="leave-user-logout" style="display: none;">
                    <div class="col-md-1 leave-user-touxiang">
                        <img class="img-responsive" alt="" src="__TPMPLATE__pc/qiye/images/pic_job2.png">
                    </div>

                    <div class="col-md-11">
                        <div class="leave-user-box">
                            <div class="col-md-10 leave-textarea">
                                <textarea class="box-textarea" placeholder="说两句吧..."></textarea>
                            </div>

                            <div class="col-md-2 leave-login-btn">
                                <a title="登录 - {$system.title.value}" href="{:URL('user/login/index')}">登录</a>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="leave-user-login">
                    <div class="col-md-1 leave-user-touxiang">
                        <img class="img-responsive" alt="" src="__TPMPLATE__pc/qiye/images/pic_job2.png">
                    </div>

                    <div class="col-md-11">
                        <form id="form" name="" method="post" action="{:url('savemass')}">

                            <div class="leave-user-box">
                                <div class="leave-user-name">
                                    <input type="text" name="name" value="" placeholder="请输入用户名字" >
                                    <!--{:session('User.name','','User')}-->
                                </div>

                                <div class="leave-textarea">
                                    <textarea class="box-textarea" name="center" placeholder="说两句吧..."></textarea>
                                </div>

                                <div class="leave-login-btn">
                                    <input value="{$data.id ?? ''}" type="hidden" name="id">
                                    <input value="提交" type="submit" class="btn btn-success">
                                    <input value="重置" type="reset" class="btn btn-default">
                                </div>
                            </div>
                        </form>
                    </div>
                </div>

            </div>

        </div>

    </div>

</div>

<div class="cont-mobile">

    <div class="container">

        {include file="template/pc/qiye/_right.html"}

        <div class="starter-template other-text">
            <h1 class="text-center">{$data.title ?? ''}</h1>
            <h5 class="text-center">{:lang('Author')}：{$data.issue}&nbsp;&nbsp;&nbsp;{:lang('Create time')}：{$data.create_time ?? ''}</h5>
        </div>

        <div class="cont_details">
            <div class="conY_text">{$data.center|default=''|html_entity_decode ?? ''}</div>
        </div>

    </div>

</div>

{/block}

{block name="js"}
<script type="text/javascript" src="__TPMPLATE__pc/qiye/js/jqzoom/jquery.jqzoom.js"></script>
<script type="text/javascript" src="__TPMPLATE__pc/qiye/js/jqzoom/base.js"></script>

<!--验证-->
<script type="text/javascript" src="__STATIC__/admin/hui/lib/Validform/v5.3.2/Validform_v5.3.2_min.js"></script>
<script type="text/javascript">
    $("#form").Validform({
        tiptype: 3,
        label: ".form-label",
        ajaxPost: true,
        showAllError: true,
        callback: function (data) {
            if (data.status == "y") {
                setTimeout(function () {
                    location.href = data.url;
                }, 1000);
            }
            if(data.status == "u"){
                window.location.reload();
            }

        }
    });
</script>
{/block}